const { contextBridge } = require("electron");

// contextBridge.exposeInMainWorld("ip", {
//   v4: async () =>await getIp(),
//   // we can also expose variables, not just functions
// });

// const { contextBridge } = require('electron');
// const WebSocket = require('ws');
// const https = require('https');

// contextBridge.exposeInMainWorld('electron', {
//   createInsecureWebSocket: (url) => {
//     const agent = new https.Agent({ rejectUnauthorized: false });
//     return new WebSocket(url, { agent });
//   }
// });
